// 前台路由处理
const router = require('koa-router')();

const db = require('../config/db.js');
// const alertMsgAndGo = require('../utils/utils.js').alertMsgAndGo;


router.get('/', async (ctx) => {

  await ctx.render("index/index");
})



// 退出
router.get('/admin/logout',async (ctx)=>{

  ctx.session = null;
  ctx.redirect('/admin');

})


module.exports = router.routes();